package com.zcxy360.sandtable.domain;

import com.zcxy360.sandtable.domain.DrawingSchedule;
import com.zcxy360.sandtable.domain.DrawingScheduleExample;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface DrawingScheduleMapper {
	
//	
	List<Map<String,Object>> listForCompletion(@Param("courseId")Integer courseId,@Param("userId")Integer userId,@Param("unitId")Integer unitId);
//
	
    long countByExample(DrawingScheduleExample example);

    int deleteByExample(DrawingScheduleExample example);

    int deleteByPrimaryKey(@Param("courseId") Integer courseId, @Param("userId") Integer userId, @Param("unitId") Integer unitId, @Param("vdrawingId") Integer vdrawingId);

    int insert(DrawingSchedule record);

    int insertSelective(DrawingSchedule record);

    List<DrawingSchedule> selectByExample(DrawingScheduleExample example);

    DrawingSchedule selectByPrimaryKey(@Param("courseId") Integer courseId, @Param("userId") Integer userId, @Param("unitId") Integer unitId, @Param("vdrawingId") Integer vdrawingId);

    int updateByExampleSelective(@Param("record") DrawingSchedule record, @Param("example") DrawingScheduleExample example);

    int updateByExample(@Param("record") DrawingSchedule record, @Param("example") DrawingScheduleExample example);

    int updateByPrimaryKeySelective(DrawingSchedule record);

    int updateByPrimaryKey(DrawingSchedule record);
}